package net.huashitong.ssydt.provider.pk.service;


import net.huashitong.ssydt.base.dao.LongMapper;
import net.huashitong.ssydt.base.service.AbstractLongService;
import net.huashitong.ssydt.pk.entity.SsPkYzddChallengeRecord;
import net.huashitong.ssydt.provider.pk.mapper.SsPkYzddChallengeRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.12.18
 */
@Service
@Transactional
public class SsPkYzddChallengeRecordServiceImpl extends AbstractLongService<SsPkYzddChallengeRecord> implements SsPkYzddChallengeRecordService {

    private SsPkYzddChallengeRecordMapper mapper;

    @Autowired
    public SsPkYzddChallengeRecordServiceImpl(SsPkYzddChallengeRecordMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    protected LongMapper<SsPkYzddChallengeRecord> getLongMapper() {
        return this.mapper;
    }

    @Override
    public int countDistinctUserIdByMatchRecordId(Long matchRecordId) {
        return this.mapper.countDistinctUserIdByMatchRecordId(matchRecordId);
    }

    @Override
    public List<String> findGaofenXunZhang(int number) {
        return this.mapper.findGaofenXunZhang(number);
    }

    @Override
    public List<String> findFendouXunZhang(int number) {
        return this.mapper.findFendouXunZhang(number);
    }
}
